* Makefile.in (DEFS): Deleted; since we're using AC_CONFIG_HEADER,
authorJim Blandy <jimb@redhat.com>
Sun, 9 May 1993 22:51:16 +0000 (22:51 +0000)
committerJim Blandy <jimb@redhat.com>
Sun, 9 May 1993 22:51:16 +0000 (22:51 +0000)
this is always just -DHAVE_CONFIG_H.

The GNU coding standards specify that CFLAGS should be left for
users to set.
* Makefile.in (CFLAGS): Let configure determine the default value
for this.  Don't
have it default to DEFS.
(${SUBDIR}): Pass CFLAGS down to submakes, not DEFS.
(lib-src/Makefile, src/Makefile): Edit the default value for
CFLAGS into these files, not DEFS.
* configure.in (CFLAGS): Choose a default value for this - "-g"
normally, or "-g -O" if we're using GCC.  Edit it into the
top-level Makefile.

* configure.in: Add AC_LN_S test, so we can tell whether or not we
can use a symbolic link to get the X Menu library into src.
* Makefile.in (LN_S): New variable.
(src/Makefile): Edit the value of LN_S into this makefile.

Makefile.in

index 2ab87a8bfcacc7e642a4b8f66f3b3819647b6cbe..97655d34653fbb3f50e42963ba153e69330fe722 100644 (file)
@@ -41,9 +41,10 @@ MAKE = make  # BSD doesn't have it as a default.
 # ==================== Things `configure' Might Edit ====================
 
 CC=@CC@
-DEFS=@DEFS@
 C_SWITCH_SYSTEM=@c_switch_system@
 ALLOCA=@ALLOCA@
+LN_S=@LN_S@
+CFLAGS=@CFLAGS@
 
 ### These help us choose version- and architecture-specific directories
 ### to install files in.
@@ -195,8 +196,6 @@ INSTALL_DATA = ${INSTALL}
 # Flags passed down to subdirectory makefiles.
 MFLAGS = 
 
-CFLAGS=${DEFS}
-
 # Subdirectories to make recursively.  `lisp' is not included
 # because the compiled lisp files are part of the distribution
 # and you cannot remake them without installing Emacs first.
@@ -241,7 +240,7 @@ src:        lib-src
 
 ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC
        cd $@; $(MAKE) all ${MFLAGS} \
-               CC='${CC}' DEFS='${DEFS}' \
+               CC='${CC}' CFLAGS='${CFLAGS}' \
                srcdir='${srcdir}/$@' libdir='${libdir}'
 
 ## We build the makefiles for the subdirectories here so that we can
@@ -266,7 +265,7 @@ lib-src/Makefile: ${srcdir}/lib-src/Makefile.in Makefile
          -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|'            \
          -e 's|^\(ALLOCA *=\).*$$|\1'"${ALLOCA}"'|'                    \
          -e 's|^CC *=.*$$|CC='"${CC}"'|'                               \
-         -e 's|^DEFS *=.*$$|DEFS='"${DEFS}"'|' \
+         -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \
          -e 's|^C_SWITCH_SYSTEM *=.*$$|C_SWITCH_SYSTEM='"${C_SWITCH_SYSTEM}"'|' \
          -e 's|^LOADLIBES *=.*$$|LOADLIBES='"${libsrc_libs}"'|'        \
          -e '/^# DIST: /d') > lib-src/Makefile.tmp
@@ -284,7 +283,8 @@ src/Makefile: ${srcdir}/src/Makefile.in Makefile
          /bin/sed < ${srcdir}/src/Makefile.in                          \
          -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|'                    \
          -e 's|^CC *=.*$$|CC='"${CC}"'|'                               \
-         -e 's|^DEFS *=.*$$|DEFS='"${DEFS}"'|' \
+         -e 's|^LN_S *=.*$$|LN_S='"${LN_S}"'|'                         \
+         -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|'                   \
          -e '/^# DIST: /d') > src/Makefile.tmp
        @${srcdir}/move-if-change src/Makefile.tmp src/Makefile
        chmod -w src/Makefile